package com.kabigon.config;

import org.springframework.amqp.rabbit.AsyncRabbitTemplate;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.config
 * @data 2023/3/5 16:15
 */
@Configuration
@Import({DirectExchangeDemoConfiguration.class})
public class RabbitConfig {
    @Bean
    public AsyncRabbitTemplate asyncRabbitTemplate(RabbitTemplate rabbitTemplate){
        return new AsyncRabbitTemplate(rabbitTemplate);
    }
}
